Component({
  data: {
    type: true
  },
  methods: {
    hSwitchLogin() {
      const type = !this.data.type
      this.triggerEvent('switchType')
      this.setData({type})
    }
  }
})